package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.OrderDto;
import com.itheima.reggie.entity.Orders;

import java.util.Map;

public interface OrderService extends IService<Orders> {
    /**
     * 用户下单
     * @param orders
     */
    public void submit(Orders orders);

    /**
     * 修改订单的状态
     * @param map
     */
    public void changeOrderStatus(Map map);

    /**
     * 订单详情的分页查询
     * @param page
     * @param pageSize
     * @return
     */
    public Page<OrderDto> page(int page, int pageSize);

    /**
     * 客户端点击再来一单
     */
    public void again(Map<String,String> map);
}
